class dog:
    def __init__(self):
       self.name ="旺财"

    def dog_name(self, name):
        self.name = name

    def show_name(self):
        print(self.name)


d = dog()
# d.dog_name("旺财")
d.show_name()
